Difference between revisions of "User talk:Bayo/Clean up scripts"

From UFO:AI
(Comma-separation in lists)
Line 19: Line 19:
 
  }
 
  }
 
:[[User:Bayo|Bayo]] 13:54, 30 May 2012 (SAST)
 
:[[User:Bayo|Bayo]] 13:54, 30 May 2012 (SAST)
 +
 +
 +
I agree with the components example. It's a good thing to change this to a more standard script syntax.
 +
I dislike the first approach to add a "name" in front of each list entry: ''a)'' it would a lot of useless content ''b)'' it's not always "name". But instead of using ''['' and '']'' we should maybe do
 +
list names { ... }

Revision as of 10:26, 2 June 2012

Comma-separation in lists

Just a thought. What about support for comma-separation in lists? --H-hour 23:00, 29 May 2012 (SAST)

 	names {
		female Aakriti,Abeba,Adina,Afra,Afua
		male "Aakriti Abeba,Adina Afra,Afua"
	}

Quotes required when a space exists within an item on the list? Or always required is fine too.

This way is not really a list, but it can works too. But if you check the script there is many more names, then i dont think it is very good idea.
Quotes is IMO needed to identify values witch are not a reference.
BTW we also can write it like that:
 	names {
		female "Aakriti"
		female "Abeba"
		male "Aakriti"
		male "Abeba"
	}
Bayo 13:54, 30 May 2012 (SAST)


I agree with the components example. It's a good thing to change this to a more standard script syntax. I dislike the first approach to add a "name" in front of each list entry: a) it would a lot of useless content b) it's not always "name". But instead of using [ and ] we should maybe do

list names { ... }