Love 0.7 docs WIP
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Love 0.7 docs WIP
It would be a mode that would be returned by getMode, and it is indeed in the same string-to-enum map used by open, but why should we create a separate one, if it currently just ignores it if it's set to close mode?
Re: Love 0.7 docs WIP
API design is UI design, and poorly designed user interfaces allow you to do nonsensical operations for no good reason. This is a minor example of just such a case. It would cost practically nothing to just raise an error when a file is being opened in closed mode, whatever the heck that even means.
EDIT: portions redacted.
EDIT: portions redacted.
Last edited by pekka on Thu Sep 23, 2010 2:02 pm, edited 1 time in total.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Love 0.7 docs WIP
You aren't getting it, "opening in closed mode" doesn't do anything, why would an error improve that?!
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: Love 0.7 docs WIP
I think I'm with pekka on this one.
If it doesn't do anything, it should throw an error. Just like it would (I hope) if one did something like myFile:open("1234").
If it doesn't do anything, it should throw an error. Just like it would (I hope) if one did something like myFile:open("1234").
When I write def I mean function.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Love 0.7 docs WIP
As this is something that the lover should have done right in the first place (it is an error or the part of the programmer, not the user), I agree to pekka and kikito. UNLESS "c" mode has some special reason for existing that I don't know about.
Help us help you: attach a .love.
Re: Love 0.7 docs WIP
This concludes my interest in contributing to the Löve on-line docs. I'm really just wasting my time here.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Love 0.7 docs WIP
Wait, why?
Re: Love 0.7 docs WIP
Because I am writing a reference document for my own off-line use, and I see no value in adding anything to the Wiki.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Love 0.7 docs WIP
Because everything you are writing down is already there? Or is there some other reason?
Re: Love 0.7 docs WIP
Because there's no sensible reason to freely give something to benefit a community; especially so if this thing is already created and usable.
Dream Big. Fight Hard. LÖVE Harder.
Who is online
Users browsing this forum: No registered users and 9 guests