people in math discussions raise their eyebrow at my new comma-less
tuple and set notation:
(a_1 a_2 ... a_n a_(n+1) .. ) in R^|N|
{1 2 3 4 5} = {a in N+ | a < 6}
Haskel hated it that time I wrote:
fold:: (b a b) b [a]
or
sum x y & zs = fold (+) 0 x:y:zs, where:
sum 1 2 3 4 5 6 7 => haskell compiler smacks yo momma.
And finally, in C, I caught this line before I tried to do anything
silly:
defmacro();
Cheers!
~max
On Jun 2, 11:27 am, Stuart Halloway <[email protected]> wrote:
> People keep looking at me funny when I point out variables as code
> smells during code review...
>
> Stu
>
>
>
> > Same here with the commas. Since I've been neck deep in Clojure, I've
> > been pathologically forgetting to add them with other languages.
>
> > On Jun 2, 10:06 am, Shawn Hoover <[email protected]> wrote:
> >> On Tue, Jun 2, 2009 at 9:52 AM, Michael Reid <[email protected]>
> >> wrote:
>
> >>> On Fri, May 29, 2009 at 2:51 PM, Paul Stadig <[email protected]>
> >>> wrote:
> >>>> You meant to type disclosure, but instead you typed disclojure.
>
> >>>> Paul
>
> >>> How about when you try to write code in other languages, and
> >>> reflexively place parentheses before function/method names?
>
> >>> (len 'Foo') <-- not valid Python. :(
>
> >>> /mike.
>
> >> Don't forget, commas are NOT optional!
>
> >> irb(main)> a = [1 2 3]
> >> SyntaxError: compile error!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---