Re: rpmbuild

2012-05-13 Thread Michael G Schwern
On 2012.5.11 12:03 AM, Peter Kruse wrote: Macros inside of comments are expanded... That clearly must be an often requested feature of rpm. Too lazy to write a full rpm spec parser for the macro expander. Now it's a feature. -- 'All anyone gets in a mirror is themselves,' she said. 'But

Re: Stupid Language Designer Tricks

2012-05-13 Thread Numien
On 13/05/12 01:48 PM, Michael G Schwern wrote: The rpmbuild post reminded me of my list of stupid language designer tricks. This is a file I add to every time I read about some stupid mistake (or brilliant feature) in a language and think if I ever write a language I am remembering not to do

Re: Stupid Language Designer Tricks

2012-05-13 Thread Andy Armstrong
On 13 May 2012, at 18:48, Michael G Schwern wrote: * Lists count from 0 * Everybody does it * Everybody's wrong * See also let's just paste what C does I find it very hard to live with Lua's 1-based arrays. I don't think it's just familiarity - lots of index calculations work out

Re: Stupid Language Designer Tricks

2012-05-13 Thread David Cantrell
On Sun, May 13, 2012 at 02:13:28PM -0400, Numien wrote: On 13/05/12 01:48 PM, Michael G Schwern wrote: The rpmbuild post reminded me of my list of stupid language designer tricks. This is a file I add to every time I read about some stupid mistake (or brilliant feature) in a language and

Re: Stupid Language Designer Tricks

2012-05-13 Thread Peter Corlett
On Sun, May 13, 2012 at 10:48:13AM -0700, Michael G Schwern wrote: [...] * Lists count from 0 * Everybody does it * Everybody's wrong * See also let's just paste what C does 0's good because it avoids fencepost errors. Perhaps you would prefer the Stan Kelly-Bootle compromise of 0.5?

Re: Stupid Language Designer Tricks

2012-05-13 Thread Michael G Schwern
On 2012.5.13 3:41 PM, David Cantrell wrote: On Sun, May 13, 2012 at 02:13:28PM -0400, Numien wrote: On 13/05/12 01:48 PM, Michael G Schwern wrote: The rpmbuild post reminded me of my list of stupid language designer tricks. This is a file I add to every time I read about some stupid mistake

Re: Stupid Language Designer Tricks

2012-05-13 Thread Aristotle Pagaltzis
* Andy Armstrong a...@hexten.net [2012-05-13 20:05]: I find it very hard to live with Lua's 1-based arrays. I don't think it's just familiarity - lots of index calculations work out significantly more verbose and ugly with 1-based arrays. Ever since I’ve dealt with them in XPath I would add

Re: Stupid Language Designer Tricks

2012-05-13 Thread Michael G Schwern
On 2012.5.13 11:36 AM, Peter Corlett wrote: I'd like to throw in the fun breakage caused by the combination of adding two unnecessary bits of syntactic sugar to Perl. Somebody decided that auto-deref would be nice, so you can do each $hashref and pop $arrayref. And then somebody else clearly

Re: Stupid Language Designer Tricks

2012-05-13 Thread Peter da Silva
On 2012-05-13, at 19:09, Aristotle Pagaltzis wrote: * Andy Armstrong a...@hexten.net [2012-05-13 20:05]: I find it very hard to live with Lua's 1-based arrays. I don't think it's just familiarity - lots of index calculations work out significantly more verbose and ugly with 1-based arrays.

Re: Stupid Language Designer Tricks

2012-05-13 Thread Peter da Silva
On 2012-05-13, at 12:59, Andy Armstrong wrote: On 13 May 2012, at 18:48, Michael G Schwern wrote: * Lists count from 0 * Everybody does it * Everybody's wrong * See also let's just paste what C does I find it very hard to live with Lua's 1-based arrays. I don't think it's just familiarity -

Re: Stupid Language Designer Tricks

2012-05-13 Thread Walt Mankowski
On Sun, May 13, 2012 at 10:48:13AM -0700, Michael G Schwern wrote: * We'll add threads later. * Perl * We'll add classes later. * C * Perl * Everything is a string. * Tcl

Re: Stupid Language Designer Tricks

2012-05-13 Thread Peter da Silva
On 2012-05-13, at 20:55, Walt Mankowski wrote: * We'll add classes later. * C Classes were still a kind of experimental idea in 1970, and it wasn't at all clear they'd ever be able to be implemented efficiently in something like C.

Re: Stupid Language Designer Tricks

2012-05-13 Thread Walt Mankowski
On Sun, May 13, 2012 at 09:07:56PM -0500, Peter da Silva wrote: On 2012-05-13, at 20:55, Walt Mankowski wrote: * We'll add classes later. * C Classes were still a kind of experimental idea in 1970, and it wasn't at all clear they'd ever be able to be implemented efficiently in something

Re: Stupid Language Designer Tricks

2012-05-13 Thread Josh Juran
On May 13, 2012, at 7:13 PM, Walt Mankowski wrote: On Sun, May 13, 2012 at 09:07:56PM -0500, Peter da Silva wrote: On 2012-05-13, at 20:55, Walt Mankowski wrote: * We'll add classes later. * C Classes were still a kind of experimental idea in 1970, and it wasn't at all clear they'd ever be

Re: Stupid Language Designer Tricks

2012-05-13 Thread Peter da Silva
On 2012-05-13, at 21:13, Walt Mankowski wrote: On Sun, May 13, 2012 at 09:07:56PM -0500, Peter da Silva wrote: On 2012-05-13, at 20:55, Walt Mankowski wrote: * We'll add classes later. * C Classes were still a kind of experimental idea in 1970, and it wasn't at all clear they'd ever be able