Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There is a very useful function in Julia, named Base.prompt (I don't remember if it's exported or not, but better be safe

  height_str=Base.prompt("Height above sea level(m): ")
  height =Parse(Float64, height_str)


TIL! I wonder why it isn't exported. There's also apparently a `Base.getpass`, that doesn't echo the entered characters and returns a `SecretBuffer`.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: