Love 0.7 docs WIP

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Love 0.7 docs WIP

Post 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?
pekka
Party member
Posts: 206
Joined: Thu Jan 07, 2010 6:48 am
Location: Oulu, Finland
Contact:

Re: Love 0.7 docs WIP

Post 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.
Last edited by pekka on Thu Sep 23, 2010 2:02 pm, edited 1 time in total.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Love 0.7 docs WIP

Post by bartbes »

You aren't getting it, "opening in closed mode" doesn't do anything, why would an error improve that?!
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Love 0.7 docs WIP

Post 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").
When I write def I mean function.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Love 0.7 docs WIP

Post 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.
Help us help you: attach a .love.
pekka
Party member
Posts: 206
Joined: Thu Jan 07, 2010 6:48 am
Location: Oulu, Finland
Contact:

Re: Love 0.7 docs WIP

Post by pekka »

This concludes my interest in contributing to the Löve on-line docs. I'm really just wasting my time here.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Love 0.7 docs WIP

Post by bartbes »

Wait, why?
pekka
Party member
Posts: 206
Joined: Thu Jan 07, 2010 6:48 am
Location: Oulu, Finland
Contact:

Re: Love 0.7 docs WIP

Post 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.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Love 0.7 docs WIP

Post by bartbes »

Because everything you are writing down is already there? Or is there some other reason?
User avatar
Kain
Prole
Posts: 7
Joined: Thu Sep 23, 2010 4:29 am
Location: Bullhead City, Arizona

Re: Love 0.7 docs WIP

Post 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.
Dream Big. Fight Hard. LÖVE Harder.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 54 guests