Cobra now supports extension methods on generic types, along with several refinements to the language, libraries and samples. Check out the "Cobra December...
Ruby and Groovy (and Perl) have a spread/splat operator that allows you to expand a list. How useful is this to programmers, if there is an alternative that...
Hi Chuck, I tried installing Cobra a few week ago, but ran into problems. My system drive is "I:", and it seemed to only look for the compiler on drives C:,...
I find it extremely useful: since packing/unpacking lists are so common operations, it's nice to be able to express that succinctly, because it enables a much...
Robert Fischer
robert.fischer@...
Jan 3, 2009 4:51 pm
2701
... I'm not sure a special operator is a good idea here- I really dislike having boatloads of special operators, as I can never remember what the heck they all...
The meaning of foo*.bar().baz.flatten() as Set is a lot clearer to me than Set.ofList $ concat $ map (foo . bar . baz) The distance of the operation to the...
Robert Fischer
robert.fischer@...
Jan 3, 2009 6:49 pm
2703
Thanks for the feedback guys. I think I'll go with a middle ground: bazzes = foo map: #bar | map: #baz | flatten as: <set> which is the same as: bazzes =...
... I'm not just what the "def" and "as Set" mean here, but I'm going to guess that in Io this would be: bazzes = foo select(bar) select(baz) flatten I mention...
The "as Set" converts the resulting object to a Set. The "def" is just announcing that I'm doing a declaration (like "let"). "bazzes = foo select(bar)...
Robert Fischer
robert.fischer@...
Jan 3, 2009 10:03 pm
2706
Hi Steve, glad you could join us :) Io's use of unevaluated messages is an awesome tool, but there is one small issue and maybe it can be resolved easily....
... If you want to use block instead of messages, I'd recommend using a map method designed for that: List bmap := method(b, self map(i, v, b call(i, v)))...
... This purely a function of familiarity with the idiom. Which is a problem with language design- a lot of people confuse their familiarity with the idiom...
This got caught in my spam filter for some reason. To answer your question: yes, "bar()" is just a method call. So you can call "ones*.plus(2)" or whatever. ...
Robert Fischer
robert.fischer@...
Jan 6, 2009 4:13 am
2710
January's work was all about refinements. Fixes, better error messages, more docs, etc. Check out the Cobra January 2009 Update [1] for more information. Or...
February's update includes mixins, lambdas, constants and new documentation. Complete Update http://cobra-language.com/forums/viewtopic.php?f=4&t=310 Download ...
I've been working on my language again lately and playing around with argument type checking, protocols and multi-methods. I find it can be helpful to find...
Hi, The Cobra April 2009 Update has been posted and Release 2009-04-30 was recently made. It features the usual round of improvements such as refinements to...
This forum is a great place for general language design chat, but I'm interested in starting a smaller more personal group for language designers. I was...
Le Fri, 19 Jun 2009 05:25:10 -0000, ... Have also a look at PiLuD http://groups.google.com/group/pilud It's not what you're looking for, just another group...
spir
denis.spir@...
Jun 19, 2009 6:40 am
2716
... I don't see why such discussion threads cannot be started in this group which already has an established membership, but low activity. ... That group shows...
I wasn't trying to replace langsmiths in any way. I apologize if it came across that way. If you look at the information on the link I provide it might...
Le Fri, 19 Jun 2009 18:38:37 -0000, ... Certainly not! I would personly love to take part to such a project; there are 2 issues for me: * not enough time next...
spir
denis.spir@...
Jun 19, 2009 8:46 pm
2719
... Believe me, I don't exactly have oodles of time to spare, either. I work for a start-up, and I have a 1 year old son. But this is something that keeps my...
... I use Python which is also a duck typing language. In my experience the missing type check at the beginning of a function/method poses no big problems. You...
... The other realm where lack of type chcking becomes problematic is where an instance variable gets populated with a object of the wrong type in the...
Hi all I don't think I have posted to this list, but I have some comments about Duck Typing and errors in Python code in particular. For background, I have a...
... I'll take this a step further and assert that: 1) If they're problems, they should be fixed even if they're not technically "bugs"- things are that...
... If type inference is done on the basis of messages that an object can receive, what happens when via message forwarding* every object can validly receive...
This is certainly true -- dynamic typing's strengths are more than just duck typing. Programatically extending types at runtime (a la Rails's ActiveRecord) and...