OK, also today we've done a bit for our renovation. We prepared the first radiators for painting and will continue tomorrow. But the most time we've gone shopping, had a BBQ, and have been visited by my sister and her husband.
But yesterday I've read about the new release 4.0 of PLT Scheme. So I've visited the site and once again I've been fascinated of the Scheme style. Even if I'm currently preferring Erlang for my work, I like the Scheme syntax more. But I also like the keyword arguments of Smalltalk. So my favorite language should be a mix of those three. Concurrency, distribution, pattern-matching, and non-modifiable variables from Erlang, the syntax like Scheme, and arguments in the style of Smalltalk. This could look like
(define (insert customer: Customer into-database: Database)
(let ((PCustomer (prepare customer: Customer))
(OpenDatabase (open database: Database)))
(...)))
Now one question would be, how pattern-matching would look like. And message sending and receiving. Erlang tuples could just also be lists. But I also would need atoms. And at last I would like Smalltalks closures more than funs and lambdas.
(map fun: (|item: Item| (print Item)) on-list: MyList)
I'll never implement such a language, but it's fun to think about it.
0 Comments:
Post a Comment