Page 2 of 3

Re: Love 0.7 docs WIP

Posted: Wed Sep 22, 2010 6:00 am
by bartbes
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

Posted: Wed Sep 22, 2010 10:49 am
by pekka
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.

Re: Love 0.7 docs WIP

Posted: Wed Sep 22, 2010 2:32 pm
by bartbes
You aren't getting it, "opening in closed mode" doesn't do anything, why would an error improve that?!

Re: Love 0.7 docs WIP

Posted: Wed Sep 22, 2010 3:18 pm
by kikito
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").

Re: Love 0.7 docs WIP

Posted: Wed Sep 22, 2010 9:18 pm
by Robin
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.

Re: Love 0.7 docs WIP

Posted: Thu Sep 23, 2010 1:52 pm
by pekka
This concludes my interest in contributing to the Löve on-line docs. I'm really just wasting my time here.

Re: Love 0.7 docs WIP

Posted: Thu Sep 23, 2010 2:01 pm
by bartbes
Wait, why?

Re: Love 0.7 docs WIP

Posted: Thu Sep 23, 2010 2:03 pm
by pekka
Because I am writing a reference document for my own off-line use, and I see no value in adding anything to the Wiki.

Re: Love 0.7 docs WIP

Posted: Thu Sep 23, 2010 2:04 pm
by bartbes
Because everything you are writing down is already there? Or is there some other reason?

Re: Love 0.7 docs WIP

Posted: Thu Sep 23, 2010 2:27 pm
by Kain
Because there's no sensible reason to freely give something to benefit a community; especially so if this thing is already created and usable.