A bug? Unbound Unbound in 1.3-alpha2 when a symbol is not set

2010-11-04 Thread Jacek Laskowski
Hi,

Is it intended in 1.3-alpha2? I think the error message in 1.2 is way
better (although not as user friendly as I wish to). Shall I report
it? Where? How?

devmac:~ jacek$ clj -13
CLOJURE_DIR:  /Users/jacek/apps/clojure
CLOJURE_CONTRIB_JAR:  /Users/jacek/apps/clojure-contrib-1.3.0-alpha2.jar
Clojure 1.3.0-alpha2
user= (def c)
#'user/c
user= c
#Unbound Unbound: #'user/c

devmac:~ jacek$ clj
CLOJURE_DIR:  /Users/jacek/apps/clojure-1.2.0
CLOJURE_CONTRIB_JAR:
/Users/jacek/apps/clojure-contrib/target/clojure-contrib-1.2.0.jar
Clojure 1.2.0
user= (def c)
#'user/c
user= c
java.lang.IllegalStateException: Var user/c is unbound. (NO_SOURCE_FILE:0)

Jacek

-- 
Jacek Laskowski
Notatnik Projektanta Java EE - http://jaceklaskowski.pl

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: A bug? Unbound Unbound in 1.3-alpha2 when a symbol is not set

2010-11-04 Thread Ken Wesson
On Thu, Nov 4, 2010 at 3:41 AM, Jacek Laskowski ja...@laskowski.net.pl wrote:
 Hi,

 Is it intended in 1.3-alpha2? I think the error message in 1.2 is way
 better (although not as user friendly as I wish to). Shall I report
 it? Where? How?

 devmac:~ jacek$ clj -13
 CLOJURE_DIR:  /Users/jacek/apps/clojure
 CLOJURE_CONTRIB_JAR:  /Users/jacek/apps/clojure-contrib-1.3.0-alpha2.jar
 Clojure 1.3.0-alpha2
 user= (def c)
 #'user/c
 user= c
 #Unbound Unbound: #'user/c

 devmac:~ jacek$ clj
 CLOJURE_DIR:  /Users/jacek/apps/clojure-1.2.0
 CLOJURE_CONTRIB_JAR:
 /Users/jacek/apps/clojure-contrib/target/clojure-contrib-1.2.0.jar
 Clojure 1.2.0
 user= (def c)
 #'user/c
 user= c
 java.lang.IllegalStateException: Var user/c is unbound. (NO_SOURCE_FILE:0)

Looks like an attempt to make commonplace compile error messages less
verbose, to me.

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: A bug? Unbound Unbound in 1.3-alpha2 when a symbol is not set

2010-11-04 Thread lprefontaine
Rich at the Conj explained that he wanted to remove a bunch of 
verifications each time a value was referenced to gain some speed.
The basis was of his reasoning was that an unbound
value is an exception more than a common thing and all these verifications at 
run time were really slowing things significantly for all applications.

I recalls that he mentioned he needed to create the unbound value to achieve
these optimizations.

Luc P.

Ken Wesson kwess...@gmail.com wrote ..
 On Thu, Nov 4, 2010 at 3:41 AM, Jacek Laskowski ja...@laskowski.net.pl 
 wrote:
  Hi,
 
  Is it intended in 1.3-alpha2? I think the error message in 1.2 is way
  better (although not as user friendly as I wish to). Shall I report
  it? Where? How?
 
  devmac:~ jacek$ clj -13
  CLOJURE_DIR:  /Users/jacek/apps/clojure
  CLOJURE_CONTRIB_JAR:  /Users/jacek/apps/clojure-contrib-1.3.0-alpha2.jar
  Clojure 1.3.0-alpha2
  user= (def c)
  #'user/c
  user= c
  #Unbound Unbound: #'user/c
 
  devmac:~ jacek$ clj
  CLOJURE_DIR:  /Users/jacek/apps/clojure-1.2.0
  CLOJURE_CONTRIB_JAR:
  /Users/jacek/apps/clojure-contrib/target/clojure-contrib-1.2.0.jar
  Clojure 1.2.0
  user= (def c)
  #'user/c
  user= c
  java.lang.IllegalStateException: Var user/c is unbound. (NO_SOURCE_FILE:0)
 
 Looks like an attempt to make commonplace compile error messages less
 verbose, to me.
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with your 
 first
 post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: A bug? Unbound Unbound in 1.3-alpha2 when a symbol is not set

2010-11-04 Thread Laurent PETIT
Luc is right.

As to explain the behavior, see below:

2010/11/4 Jacek Laskowski ja...@laskowski.net.pl:
 Hi,

 Is it intended in 1.3-alpha2? I think the error message in 1.2 is way
 better (although not as user friendly as I wish to). Shall I report
 it? Where? How?

 devmac:~ jacek$ clj -13
 CLOJURE_DIR:  /Users/jacek/apps/clojure
 CLOJURE_CONTRIB_JAR:  /Users/jacek/apps/clojure-contrib-1.3.0-alpha2.jar
 Clojure 1.3.0-alpha2
 user= (def c)
 #'user/c
 user= c
 #Unbound Unbound: #'user/c

c has the value Unbound. The semantic has not changed, the way to
carry the semantic has.

Now if you try to really use c, for example use it in call position,
then since Unbound implements IFn, you'll have the appropriate
exception because it correctly overrides IFn's invoke(...) methods.


 devmac:~ jacek$ clj
 CLOJURE_DIR:  /Users/jacek/apps/clojure-1.2.0
 CLOJURE_CONTRIB_JAR:
 /Users/jacek/apps/clojure-contrib/target/clojure-contrib-1.2.0.jar
 Clojure 1.2.0
 user= (def c)
 #'user/c
 user= c
 java.lang.IllegalStateException: Var user/c is unbound. (NO_SOURCE_FILE:0)




 Jacek

 --
 Jacek Laskowski
 Notatnik Projektanta Java EE - http://jaceklaskowski.pl

 --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with your 
 first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: A bug? Unbound Unbound in 1.3-alpha2 when a symbol is not set

2010-11-04 Thread Jacek Laskowski
On Thu, Nov 4, 2010 at 8:39 PM, Laurent PETIT laurent.pe...@gmail.com wrote:

 c has the value Unbound. The semantic has not changed, the way to
 carry the semantic has.

 Now if you try to really use c, for example use it in call position,
 then since Unbound implements IFn, you'll have the appropriate
 exception because it correctly overrides IFn's invoke(...) methods.

It begs a question then, why would I do that? Where would that be of use?

devmac:~ jacek$ clj -13
CLOJURE_DIR:  /Users/jacek/apps/clojure
CLOJURE_CONTRIB_JAR:  /Users/jacek/apps/clojure-contrib-1.3.0-alpha2.jar
Clojure 1.3.0-alpha2
user= (def c)
#'user/c
user= (c)
IllegalStateException Attempting to call unbound fn: #'user/c
clojure.lang.Var$Unbound.throwArity (Var.java:43)
user= (type c)
clojure.lang.Var$Unbound

Jacek

-- 
Jacek Laskowski
Notatnik Projektanta Java EE - http://jaceklaskowski.pl

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: A bug? Unbound Unbound in 1.3-alpha2 when a symbol is not set

2010-11-04 Thread David Nolen
On Thu, Nov 4, 2010 at 7:09 PM, Jacek Laskowski ja...@laskowski.net.plwrote:


 It begs a question then, why would I do that? Where would that be of use?


The behavior has changed, for some context:

http://clojure-log.n01se.net/date/2010-10-18.html#12:12c

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en