Common Lisp (and MzScheme) users can use first (and second, and third...) and rest, and probably should do so when using simple lists.
460 karma · joined March 11, 2008
www.SimonDavidPratt.com
me {at) SimonDavidPratt (dot} comCommon Lisp (and MzScheme) users can use first (and second, and third...) and rest, and probably should do so when using simple lists.
The syntax
let villain = (28,"chirs") in fst villain
is not obvious to me, and the tutorial doesn't explain what each piece of the new syntax means, and quickly moves on to something new in step 8.Only through experimentation, I find:
fst (28,"chirs")
=> 28
snd (28,"chirs")
=> "chirs"
So I gather the let is equivalent to: (let ((villain '(28 "chirs")))
(first villain))
But without parens, line breaks or semicolons I have difficulty determining where one expression ends and another begins.Plus, the arbitrary shortening of "first" to "fst" doesn't help, and should probably be clarified.
You seem to only check the return value to determine when to skip to the next step in the tutorial, since in step10, you want me to type:
['a','b','c'] == "abc"
But it skips ahead when I play around and return True from a different expression: 'a' : 'b' : [] == "ab"
=> TrueIf there's nothing in the detected area, can you move to the closest bon instead?
Long live HN Skynet!
"Hi! amoebaOS opens for Beta registration soon."
And it gave me: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 47 bytes) in /var/www/vhosts/rickyspears.com/httpdocs/wwwzr/reader/index.php on line 68
International news avoids the term "billion" because it can refer to 10^9 or 10^12.
In UK English, 10^9 is called a milliard.
That would be tantamount to a programmer founding a company.
any DSL which generates markup must be more concise than the markup itself
Otherwise, there will have been no point in creating the DSL. This assumption is probably fair. An example of this would be Seaside's HTML generation DSL. a more concise language will be better in the long run
This assumption is flawed and doesn't take the designers' tools into account. A DSL would need its own tools before it became a valuable long-term investment.However, given that business are formed to turn a profit, the standard workflow will remain unchanged until it is profitable to do otherwise.
If a markup-generating DSL was simple enough for designers to pick up quickly, it would make good business sense to push them through the transition.
Remove all synonyms
Example: fine -> good
Remove antonyms and just negate the word
Example: bad -> ungood
Remove special-case nouns: just combine a noun and one or more adjectives to reach the same meaning with fewer fundamental words.
Example: great -> doubleplusgood; murder -> collateral damage
We could call this doubleplusgood language newspeak.