self is a preference, I prefer not wasting brain power thinking up new 
names for receivers. The custom bsearch is twice as fast, probably because 
of no method calls; anyway, it's not rocket surgery. Did you see the 
benchmarks section in the README?

/fncodr

Den torsdag 25 augusti 2016 kl. 06:01:25 UTC+2 skrev Tamás Gulácsi:
>
> Using "self" is not idiomatic in go. Aside this little naming convention, 
> as I see, GetSym reimplements sort.Search, which is unnecessary.
>
> Have you benchmarked this against a sorted slice of strings?
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to