Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aliases / renaming of some conditionals #1039

Open
jarmitage opened this issue Sep 18, 2023 · 0 comments
Open

Aliases / renaming of some conditionals #1039

jarmitage opened this issue Sep 18, 2023 · 0 comments

Comments

@jarmitage
Copy link

Ref: https://tidalcycles.org/docs/reference/conditions

Currently, pickF, selectF, squeeze and select all share some similarities that are obscured by their naming. For me this obscures their purpose and makes them hard to remember.

I have for now renamed these in my own setup using my "golfing" style:

selectFunctionFromIntegers = pickF
selectFunctionFromFloats   = selectF
selectPatternFromIntegers  = squeeze
selectPatternFromFloats    = select

selFuncInt   = selectFunctionFromIntegers
selFuncFloat = selectFunctionFromFloats
selPatInt    = selectPatternFromIntegers
selPatFloat  = selectPatternFromFloats

selFI = selFuncInt
selFF = selFuncFloat
selPI = selPatInt
selPF = selPatFloat

@mindofmatthew also suggested:

pick = select
pickI = squeeze
pickFunc = selectF -- Maybe pickF or pickOp
pickFuncI = pickF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant