TropicSapling/triforce

Replace '>>>' and '<<<' with '..'?

Opened this issue · 3 comments

arr[start>>>end], arr[end>>>start] -> arr[start..end]
arr[start<<<end], arr[end<<<start] -> arr[end..start]

This would make it faster to type on some keyboards, especially if you type >>> and <<< with spaces around to make it look better. However, it may increase chances of bugs, for example if start would unintentionally be larger than end causing it to access items backwards (or the other way around).

yea but what if you want start to be longer than end

EDIT: You said that oh

Also not rly any easier to type, it looks nicer so

I guess it depends on keyboard layout, on a Swedish keyboard it's quite a bit faster to type .. than >>>, because it requires you holding SHIFT.