Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

^@

Name: Anonymous 2009-11-30 15:13

C:\Users\anon>^@
More?

Name: Anonymous 2009-11-30 15:17

[Anonymous@/prog/ ~]$ ^@
This is not ubuntu, faggot!

Name: Anonymous 2009-11-30 15:40

When I was first learning Perl, I was blown away that $_ is a valid variable.

Name: Anonymous 2009-11-30 15:56

>>3
Why?

Name: Anonymous 2009-11-30 16:06

>>3
There are no restrictions whatsoever on variable names.  I don't see what's so surprising about that one in particular.

Name: Anonymous 2009-11-30 16:15

>>5
Exactly! I name my variables after anii (e.g. anus1, anus2, anus, ...) and they all work!

Name: Anonymous 2009-11-30 17:39

>>3
Guess what other languages it's a valid variable name in? The one I'm thinking of will surprise you. Go on, give it a shot.

Did you guess it yet? It's    Java   

Name: Anonymous 2009-11-30 17:48

>>7
I think you meant JavaScript

Name: >>七 2009-11-30 18:08

>>8
I carefully worded my post to reflect the fact that other languages also allow it. Go on, read it again.

Name: Anonymous 2009-11-30 18:37

>>9
OH YEAH MOTHERFUCKER? DON’T YOU DARE LOOK DOWN ON ME!!

Name: Anonymous 2009-11-30 18:43

I  HATE  women.  I  never  had  a  girlfriend  and  never  will.  The  only  times  I  got  laid  was  when  I  paid  a  woman  or  promised  her  something.  I'm  never  going  to  hold  hands  with  a  chick,  kiss  a  girl  intimately  because  we're  in  love,  or  any  of  the  other  shit  that  human  beings  were  made  to  do.  I  guess  that  I'm  suppose  to  be  happy  masturbating  every  fucking  night.  I'm  a  man  with  sexual  urges  and  can't  get  with  a  female.  I'm  suppose  to  be  alright  with  that?  THERE  IS  A  FUCKING  CURSE  ON  MY  LIFE.  A  CURSE  THAT  PREVENTS  ANY  FEMALE  FROM  LIKING  ME.  Oh  I  forgot,  I  do  get  interest  from  fat  chicks  and  I'm  not  attracted  to  fat  chicks.
I  don't  give  a  fuck  anymore.  I'm  going  to  become  the  biggest  asshole  in  the  world.  I  tried  the  whole  being  considerate  thing  and  it  got  me  nowhere.  If  people  can't  handle  my  newfound  harshness,  then  bring  it  on.  BECAUSE  I  DON'T  GIVE  A  FUCK.  I  DON'T  GIVE  A  FUCK.  I  DON'T  GIVE  A  FUCK.
I  get  happy  when  I  hear  about  some  college  slut  getting  murdered  or  injured  in  a  hit  and  run.  "oh  she  was  a  beautiful  and  talented  girl,  how  could  this  happen."  I  don't  know  but  I'm  glad  it  did.

Name: Anonymous 2009-11-30 19:05

>>11
USE PROPER SPACES PLEASE!!!

Name: Anonymous 2009-11-30 19:17

No guys but the point of this thread was that I don't have an idea wft is that ``More?'' supposed to be.

Name: Anonymous 2009-11-30 19:33

I routinely use variable names like $1, $2, $_ etc. when writing parsers in C.

Name: Anonymous 2009-12-01 0:04

>>14
Your parsers routinely fail to compile due to invalid variable names?

Name: Anonymous 2009-12-01 0:22

>>15
This may surprise you, but you can use $ in variable names in C.

Name: Anonymous 2009-12-01 1:02

Lisp has the best "variable names". Symbol names can be anything, which means any possible string containing any characters possible can be used. Not all are printable or readable directly without escaping the name, but that depends on the readtable-case and a few other rules.

Name: Anonymous 2009-12-01 3:19

>>17
Stop that Lisp hoax. From what I read aboout it, it seems that this language is too awesome to be real.

Name: Anonymous 2009-12-01 3:50

>>18
Why don't you try learning and using it? It's not as hard as some people think.

Name: Anonymous 2009-12-01 10:26

>>17
Can I have a variable named (#'?

Name: Anonymous 2009-12-01 10:54

>>20
Yes, but since ( and #' are both reader macros:

CL-USER> (get-macro-character #\()
#<FUNCTION SB-IMPL::READ-LIST>
NIL
CL-USER> (get-macro-character #\#)
#<FUNCTION SB-IMPL::READ-DISPATCH-CHAR>
T
CL-USER> (get-dispatch-macro-character #\# #\')
#<FUNCTION SB-IMPL::SHARP-QUOTE>

If you used a variable named that, the reader would end up calling the reader macros, thus your variable name won't end up being read. To explicitly use that symbol name, you have to use a multiple escape character to designate it: |(#'|:

CL-USER> (symbol-name '|(#'|)
"(#'"

For more information on this: http://www.lispworks.com/documentation/HyperSpec/Body/02_ade.htm

If you had some really strange/minimalistic readtable where you wouldn't use () to designate lists and #' wouldn't be a dispatch macro character for (function _), then you could actually use (#' freely as a symbol name without having to use the multiple escape.

Name: >>21 2009-12-01 11:07

The general idea is that once you give a character some special functionality as part of the syntax(be it some official standardized one, or something of your own making), using in symbol names without escaping it becomes impossible, but that's perfectly understandable. In a syntax of your own making, you can choose what needs to be escaped and what doesn't. CL tries leave a lot of characters unused, so you can make rich symbol names, or use it for your own syntax, while building upon CL's default syntax (of course, nothing forbids you from starting from scratch and just making your own syntax, or even defining your own reader - you could easily make it support some C syntax or Python syntax or whatever you please - some people have already done this!).

Name: Anonymous 2009-12-01 11:29

>>21
So, in other words, no you can't use (#' as a variable name, it's really called |(#'| for all practical purposes.

Name: Anonymous 2009-12-01 11:43

>>23
The symbol name is (#', but to actually get the default reader to read it, you would have to escape it. If you truly desire to use that as a variable name without escaping it, you would have to remove the ( macro character from the current readtable, an example of how to achieve such a broken syntax would be:

(progn
  (set-syntax-from-char #\[ #\() 
  (set-macro-character #\( nil)
  (set-macro-character #\# nil)
  (set-macro-character #\' nil))

However, this would break a lot of things unless you are careful to patch things up (you should write your own #\( handler and so on).

There is no way (in any language out there) to allow any character in symbol names without escaping as long as you have SOME syntax, otherwise it would be theorethically(and practically) impossible to parse it. However, if you decide the syntax, you could easily make (#' a valid symbol name without requiring escaping. I don't see the use in doing this, but it's perfectly possible. In practice, most Lispers don't mess with the syntax, and prefer keeping it minimal, so it would indeed be used as |(#'| .

Name: Anonymous 2009-12-01 12:12

>>24
Stop this Lisp hoax. There ain't no language that lets the programmer modify the syntax, silly. This was fun back then in 1958, but now it's not anymore, today we joke about Trollgol.

Name: Anonymous 2009-12-01 12:29

IF YOU CAN READ THIS, YOUR A MASSIVE FAGGOT
IF YOU CAN READ THIS, YOUR A MASSIVE FAGGOT
IF YOU CAN READ THIS, YOUR A MASSIVE FAGGOT
IF YOU CAN READ THIS, YOUR A MASSIVE FAGGOT
IF YOU CAN READ THIS, YOUR A MASSIVE FAGGOT
IF YOU CAN READ THIS, YOUR A MASSIVE FAGGOT
IF YOU CAN READ THIS, YOUR A MASSIVE FAGGOT
IF YOU CAN READ THIS, YOUR A MASSIVE FAGGOT
IF YOU CAN READ THIS, YOUR A MASSIVE FAGGOT
IF YOU CAN READ THIS, YOUR A MASSIVE FAGGOT
IF YOU CAN READ THIS, YOUR A MASSIVE FAGGOT
IF YOU CAN READ THIS, YOUR A MASSIVE FAGGOT
IF YOU CAN READ THIS, YOUR A MASSIVE FAGGOT
IF YOU CAN READ THIS, YOUR A MASSIVE FAGGOT
IF YOU CAN READ THIS, YOUR A MASSIVE FAGGOT
IF YOU CAN READ THIS, YOUR A MASSIVE FAGGOT
IF YOU CAN READ THIS, YOUR A MASSIVE FAGGOT
IF YOU CAN READ THIS, YOUR A MASSIVE FAGGOT
IF YOU CAN READ THIS, YOUR A MASSIVE FAGGOT
IF YOU CAN READ THIS, YOUR A MASSIVE FAGGOT

Name: Anonymous 2009-12-01 12:39

Name: Anonymous 2009-12-01 13:44

>>16
It actually did surprise me. I've never seen them used before (thankfully), but they seem to work in at least in gcc. K&R says that variable names must start with a letter or an underscore. What's up with this crap?

Name: Anonymous 2009-12-01 15:45

>>28
$ is a letter, don't you know your ABC's?

Name: Anonymous 2009-12-01 15:56

/-\ |: ( |) 3 ]= (_+ |-| | (/ |_ |\/| |\| () |> (,) |? $ -|- |_| \/ \^/ }{ `/ %

Name: Anonymous 2009-12-01 15:57

>>30
Forgot your |<.

Name: Anonymous 2013-06-18 18:28

Name: Anonymous 2013-06-18 18:30

Name: Anonymous 2013-06-18 18:35

Name: Anonymous 2013-06-18 18:37

Name: Anonymous 2013-06-18 18:42

Name: Anonymous 2013-06-18 18:44

Name: Anonymous 2013-06-18 18:49

Name: Anonymous 2013-06-18 18:51

Name: Anonymous 2013-06-18 18:56

Name: Anonymous 2013-06-18 18:58

Name: Anonymous 2013-06-18 19:02

Name: Anonymous 2013-06-18 19:05

Name: Anonymous 2013-06-18 19:09


Don't change these.
Name: Email:
Entire Thread Thread List