[erlang-questions] Hungarian notation for Erlang / ETL

Zvi <>
Wed Jan 9 00:45:28 CET 2008


Is there some kind of Hungarian notation for Erlang? i.e. prefix or postfix
naming convention.
As Erlang has dynamic typing and somewhat confuzed about string datatype, I
constantly make errors when mixing lists and binary strings. This is
reminding me situation when programming C++ for Win32, where you have
zero-terminated, STL, MFC, BSTR and other string representations.
I saw atleast one .erl sorce code, where the author using "B" postfix  for
binaries, i.e. Query - is query string list, but QueryB - is query string
binary.

The other confused datatypes in Erlang is arrays/vectors and
dictionaries/maps/hashtables.

Another question: is there something like C++ STL in Erlang? I.e. ADTs
conforming to the same behavior(s). The behavior should implement all the
HOFs and generic algorithms, instead of STL iterators.

Thanks
Zvi
-- 
View this message in context: http://www.nabble.com/Hungarian-notation-for-Erlang---ETL-tp14701912p14701912.html
Sent from the Erlang Questions mailing list archive at Nabble.com.




More information about the erlang-questions mailing list