Search the web
Sign In
New User? Sign Up
langsmiths · Language Smiths
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 2638 - 2667 of 2746   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
2638
... OOPSLA 2008 23rd Annual ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages, and Applications October 19-23, 2008 Nashville...
cfp.oopsla@...
cfp.oopsla
Offline Send Email
Sep 6, 2008
9:26 am
2639
World-renowned Egyptologist Dr. Mark Lehner will speak at OOPSLA 2008 The OOPSLA conference attracts software technologists from around the world. Here they...
cfp.oopsla@...
cfp.oopsla
Offline Send Email
Sep 24, 2008
9:55 pm
2640
I (and many others) haven't posted here in a while, but I thought I'd give it a shot... :) In many languages, logic operators "and" and "or" have been...
Mike
mike_ekim
Offline Send Email
Nov 23, 2008
8:57 pm
2641
... What the hey, I'll bite. It's bad practice. You're conflating different ideas- for example nil/null and false. Which becomes a problem if the programmer...
Brian Hurt
bhurt42
Offline Send Email
Nov 24, 2008
1:16 am
2642
Replying to myself is bad etiquette, I know, but a new though just occurred to me. There is a logical fallacy a lot of people fall into that goes like this: ...
Brian Hurt
bhurt42
Offline Send Email
Nov 24, 2008
2:03 am
2643
Sorry for the short response, but the question remains... Python, Javascript, Lua, Ruby, all use "or" and "and" as: 1 or 2 => 1 1 and 2 => 2 Can there be a...
Mike Austin
mike_ekim
Offline Send Email
Nov 24, 2008
3:09 am
2644
... Yes, this is called the "coalesce" operator. My language, Cobra, has this as "a ? b" which evals to "a" unless it's nil, in which case it evals to "b"....
Chuck Esterbrook
chuckesterbrook
Offline Send Email
Nov 24, 2008
3:39 am
2645
... Lisp, too. Pretty much any language without a separate boolean type that isn't trying to be C-compatible will naturally do the same thing. -- They do not...
John Cowan
johnwcowan
Online Now Send Email
Nov 24, 2008
7:19 pm
2646
... These rules are operationally meaningless. The compiler has no access to what the programmer means or might mean, only to what he says, which always ...
John Cowan
johnwcowan
Online Now Send Email
Nov 24, 2008
7:19 pm
2647
... foo()" which doesn't overload the logic operators? ... My language uses 'default' operator to achieve this. "x default 5" returns 5 if (and only if) the...
rudla.kudla
Offline Send Email
Nov 24, 2008
9:01 pm
2648
... I meant 6 not 51, of course....
rudla.kudla
Offline Send Email
Nov 24, 2008
9:16 pm
2649
... There are languages beyond Python, Javascipt, Lua, and Ruby. And I should ask- what is the meaning of 1 or 2? I could make the cogent argument that the...
Brian Hurt
bhurt42
Offline Send Email
Nov 24, 2008
11:41 pm
2650
... This is NOT operationally meaningless. It's just very generic. A couple of specific examples help. A classic example of violating rule #2 is the dangling...
Brian Hurt
bhurt42
Offline Send Email
Nov 25, 2008
12:15 am
2651
... Sure. It depends on how (and if) the language in question maps its values into booleans. Given that 1 is true (not the unique true value, but one of the...
John Cowan
johnwcowan
Online Now Send Email
Nov 25, 2008
12:21 am
2652
... In one of several directory trees or ZIPfiles which mirror the package tree, is the more correct statement. The reason for that requirement is to permit...
John Cowan
johnwcowan
Online Now Send Email
Nov 25, 2008
12:29 am
2653
... Care to expand? -Chuck -- http://cobra-language.com/...
Chuck Esterbrook
chuckesterbrook
Offline Send Email
Nov 25, 2008
12:57 am
2654
Suppose you have a method that takes a sequence of names. In Python: def foo(names): for name in names: print name From a general language design perspective,...
Chuck Esterbrook
chuckesterbrook
Offline Send Email
Nov 25, 2008
5:01 am
2655
Ahh, learn something every day :) What is the operator, if any, for the equivalent of "obj and obj.foo()"? One issue of introducing more operators is that you...
Mike Austin
mike_ekim
Offline Send Email
Nov 25, 2008
5:55 am
2656
Questions - So why did you introduce a "default" operator vs. using "or"? And, why were you more strict about it than your coercive "+" operator? I ask only...
Mike Austin
mike_ekim
Offline Send Email
Nov 25, 2008
6:14 am
2657
I'm familiar with other languages also, I just mention the ones below because they have the same semantics. When you say "compiler guessing", do you mean the...
Mike Austin
mike_ekim
Offline Send Email
Nov 25, 2008
6:21 am
2658
I was first going to say that it seems like a nice idea. But then, you wouldn't know if you were passed an empty list, or simply null. In languages where nil...
Mike Austin
mike_ekim
Offline Send Email
Nov 25, 2008
7:55 am
2659
... For an obj that is a nilable type? You can say exactly that: def compute(t as List<of int>?) if t and t.count print t.count Notice the ? on the type which...
Chuck Esterbrook
chuckesterbrook
Offline Send Email
Nov 25, 2008
8:17 am
2660
The '+' and 'or' operator (and most other) behave in similar way. The '+' operator tries to convert it's operands to numbers. The 'or' operator tries to...
Rudla Kudla
rudla.kudla
Offline Send Email
Nov 25, 2008
8:36 am
2661
... In Cobra, if you want to know that, use an identity comparison to "nil": if stuff is nil print 'I was passed nil!' else print 'I has stuff but maybe...
Chuck Esterbrook
chuckesterbrook
Offline Send Email
Nov 25, 2008
8:38 am
2662
... It depends. In Common Lisp, where nil is identified with the empty sequence, this should do nothing. In languages with distinct notions of null and the...
John Cowan
johnwcowan
Online Now Send Email
Nov 25, 2008
3:12 pm
2663
... Um, you *can* iterate over 5 in Cobra: for i in 4 print i gives 0, 1, 2, 3 ... True. ... I first discovered it by trying to foreach on a stream, such as...
Chuck Esterbrook
chuckesterbrook
Offline Send Email
Nov 25, 2008
7:47 pm
2664
... Well, okay, in that context you cast 5 to the sequence [0, 1, 2, 3]. But what happens if you iterate over 2.5, or over "foo", or over some arbitrary ...
John Cowan
johnwcowan
Online Now Send Email
Nov 25, 2008
7:52 pm
2665
... It's not even cast, but considered to be the "for-numeric" statement and runs at the same speed as a C for(int i...) loop. 2.5 is an error as it is neither...
Chuck Esterbrook
chuckesterbrook
Offline Send Email
Nov 25, 2008
8:10 pm
2666
That reminds me, Dylan has nullable types: slot parent :: false-or (<shape>); Would you consider C++ references as non-nullable types? Mike ...
Mike Austin
mike_ekim
Offline Send Email
Nov 26, 2008
12:57 am
2667
"It's not a format argument, but I thing it is valid, as language designers should apply certain amount of aesthetics when designing the language." I...
Mike Austin
mike_ekim
Offline Send Email
Nov 26, 2008
12:58 am
Messages 2638 - 2667 of 2746   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help