Difference between revisions of "Talk:Formspec json"

From Minetest Developer Wiki
Jump to navigation Jump to search
Line 3: Line 3:
  
 
* I have changed the display of the page and slightly altered the format. It is now a lot easier to read, does this seem better? (ShadowNinja)
 
* I have changed the display of the page and slightly altered the format. It is now a lot easier to read, does this seem better? (ShadowNinja)
 +
 +
== Lua instead of JSON ==
 +
 +
Would it not make more sense to use Lua syntax instead of JSON = JavaScript = yucky unreadable colons?  Not like this game uses Lua or anything, and not like Lua was originally created to be a configuration language...  It can still be text - it doesn't have to be a lua table - just not JSON. 
 +
[[User:Electrodude512|Electrodude512]] ([[User talk:Electrodude512|talk]]) 05:06, 23 September 2014 (MSK)

Revision as of 01:06, 23 September 2014

Readability

I know formspec isn't perfect for sure ... but imho this simple example already shows WHY NOT use json for formspecs ... there's no chance to actually read that code. You always have to decode that non saying json character string. (sapier)

  • I have changed the display of the page and slightly altered the format. It is now a lot easier to read, does this seem better? (ShadowNinja)

Lua instead of JSON

Would it not make more sense to use Lua syntax instead of JSON = JavaScript = yucky unreadable colons? Not like this game uses Lua or anything, and not like Lua was originally created to be a configuration language... It can still be text - it doesn't have to be a lua table - just not JSON. Electrodude512 (talk) 05:06, 23 September 2014 (MSK)