Hacker News new | ask | show | jobs
by ef4 5179 days ago
It's a red herring to bring up the static vs dynamic typing issue, because both can readily support interactive autocompletion & documentation.

Even something as Spartan as the Javascript REPL in Chrome will do autocompletion of method names, despite being in a completely dynamically typed environment.

1 comments

> var n = 42; n.[[TAB]]

No auto-complete. It's severely limited to only live objects. Which may be an argument for REPL, but it's not an argument for "dynamic languages can have autocomplete".

I have intelligent object method/property auto-completion in Python in Emacs.

The argument for "dynamic languages can have autocomplete" is that they already do in a variety of modern editors (like Emacs) and IDEs (like PyCharm et al).

You're not only ignorant, but proudly so.

You're right that autocomplete does exist, but in my experience it's very limited in dynamic languages.

For example, the following code does not give me any auto-completion suggestions in eclipse or in vim:

  str = "hello"
  test(str)
  
  def test(val):
    val.[TAB]
I wasn't saying it's not possible to have autocomplete for dynamic languages. I've used VJET, a pretty good Eclipse plugin for JS development.

I was saying that "Even something as Spartan as the Javascript REPL in Chrome" can't do "real" autocomplete.

Vim can be a decent, fast Python IDE with the right plugins too: http://dancingpenguinsoflight.com/2009/02/python-and-vim-mak...