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

p..q is a fairly common math notation synonymous with [p,q].

Although, p...q is not very obvious, indeed.



Well, they aren't synonymous in Ruby. It's [p,q] operator is also not intuitive for me.

But then, "not intuitive" just means I'll spend a few minutes more learning the language because of it (except in C++, where it means many hours).




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

Search: