But yeah. Crappy article title.
18 karma · joined February 5, 2012
But yeah. Crappy article title.
I'd settle for a gdb backend, really. But printf-debugging is unacceptable.
## if
val = func()
if val: # standard form
code(val) # of if
## aif
aif(func, code) # not obvious that it does the same thing
# and limits you to using a function defined
# elsewhere, or Python's crippled one-line lambda.
Whereas in Lisp, you'd do: ;; regular when
(let (val (func))
(when val ; standard form
(func val))) ; of when
;; awhen
(awhen (func) ; standard form of
(func it) ; when, with added bound value
; possibly other
; code goes here
)
Do you see how the two forms of Python look very different, and the two forms of Lisp look the same?If you don't like magic, you could invent an awhen that took an extra parameter that designates the name to bind the result to, e.g. (awhen val test).
So.
Yes - you can achieve the same thing, as in any programming language that is Turing complete.
No - you cannot get the same syntax. And syntax affects readability and familiarity.
A very good way of thinking.
I'd prefer if they could be renamed to "Fetaure X which enables e.g. sublime minimap" and dito for autocomplete.
What is the standard you're talking about? Common Lisp? Scheme? Clojure? Emacs Lisp?
Common Lisp, of course. That's what you refer to when you say Lisp today. Otherwise you'd say Scheme, Clojure or Elisp. And CLOS is quite a good object system, actually.
Yes, I agree -- my comment was referring to the fact that it is missing from Hy.I call on your "no need to rehash it here." Without even one good example, I'd say you're just trying to be elitist.
Get with the program: http://en.wikipedia.org/wiki/KHTML
I've remapped left hand's home row to {[]} and QWE to ?() with a modifier.
Did not touch type when using QWERTY. Switched and learn it correctly. On the flip side, I have no idea where the keys are located if I try to do hunt-and-peck typing now.