Hi,
Just for the record, what is the "official" convention for naming snippets? For example, I have a snippet like this:
array date(${1:$array}; 0) set array($1; ${2:date})
What should the associated snipped be named?
Regards,
Aparajita www.aparajitaworld.com
"If you dare to fail, you are bound to succeed." - Sri Chinmoy | www.srichinmoylibrary.com
On 2/5/2006, at 21:10, Aparajita Fishman wrote:
Just for the record, what is the "official" convention for naming snippets?
From http://anon:anon@macromates.com/svn/Bundles/trunk/Conventions.txt:
Name the snippet after what it inserts, using “..” for placeholders and put the (potential) tab-trigger in parentheses. If it inserts a lot, either name it after the start of what's inserted, or find a descriptive name for what it inserts.
For example, I have a snippet like this:
array date(${1:$array}; 0) set array($1; ${2:date})
What should the associated snipped be named?
uhm… what is it? an array named date? or a date as an array? ;)
array date(${1:$array}; 0) set array($1; ${2:date})
uhm… what is it? an array named date? or a date as an array? ;)
That is a single command, "array date". 4th Dimension is the only language (I know of) in the world that allows spaces in identifiers. Makes parsing a very lovely experience. ;-)
Regards,
Aparajita www.aparajitaworld.com
"If you dare to fail, you are bound to succeed." - Sri Chinmoy | www.srichinmoylibrary.com
On 3/5/2006, at 1:47, Aparajita Fishman wrote:
array date(${1:$array}; 0) set array($1; ${2:date})
uhm… what is it? an array named date? or a date as an array? ;)
That is a single command, "array date". 4th Dimension is the only language (I know of) in the world that allows spaces in identifiers. Makes parsing a very lovely experience. ;-)
AppleScript allows for spaces in commands and properties, like “do script” and “current track”.
I still do not know what an ‘array date’ is. But I would call the snippet that. Maybe as ‘Array Date … (array)’ (assuming array is the tab trigger).