I was just playing with my research language "Inertia", and had a thought about using predicates and multi-methods for blocks. This would allow me to do list...
Hello Mike, ... Looking at your example, it seems as you say, very close to pattern matching. But, do you have a "default" operator (such as `_') ? I would be...
... Thanks for your comments Marcin. The lack of ifs? :) I'm really just experimenting with generics. I also want the ability to add method to generic...
... What happens when conditions are not disjoint, or when they don't cover all arguments? Types usually have some subtyping relation which yields a "more ...
... No, I don't have any plans for an '_' operator, as my language is dynamically typed and only somewhat simulates pattern matching. Instead of using the...
... You mean like: translate = x [x > 0] -> x * 2 translate = x [x > 5] -> x * 3 I'm not sure. Maybe some simple internal reordering, for example the above...
I hope everyone had a good Holiday, and will have a great New Years Eve! Yes, it's me again, the syntax ultraist. :) I had a few more ideas the other day...
... Factor [1] has recently added predicate based OO using a generic function approach which you might find interesting. From the irc example: GENERIC:...
... The use of = vs. -> in Haskell, including also 'case' (with ->) and let pattern = expression isa simple to remember: use = when the left hand side is the...
I am a fan of learning different languages, but in regards to Factor, I have to say that I wouldn't be able to understand a single example without annotations....
... Well, I keep that in mind, but it's hard to find all of them without actually coding in the language. Now that I have solidified some ideas, I'll go back...
After thinking and writing a bit of EBNF, I had an idea about using nested functions and dynamic scope for a parser. I'm sure this has already been done, but...
... I think such things have been done, but I can't name a language that does that in that way off the top of my head. (Just as a curiousity, I do know that in...
... Hey James. I have an older Mac G4 I use for some porting (actually Steve's old old box), I I just tried SuperCollider. Took a few minutes to get used to,...
don't select all. many examples are meant to be executed a bit at a time. just double click on the open paren. that will select the text between the parens....
I like SuperCollider with it's newer syntax. It's very Rubyish, but better :) Partial application is interesting. If I understand correctly, the following...
... I'll take a look for it. ... Hmm, how would you make sure all calls inside a keyword function parser found the right Expression? Say the expression is "do:...
... My new language that I'm working on (Vlange) has keyword arguments only, with a more Smalltalk-style syntax. A function call takes this form: name...
... In Smalltalk, keywords messages have the lowest precedence, so the first example would work as expected. Do you not want it to work this way? You'd have...
... do you allow the keywords out of order? in SuperCollider you can pass any argument either positionally or as a keyword argument, and the keyword arguments...
... About a month. ... I also try to avoid "line noise". And, yes, avoiding ambiguity seems to be an intrinsic part of language design, although I think I'm...
... I decided not to allow arguments in any order, at least not at first. But it should be easy to do; simply sort the arguments alphabetically. Mixing it...