You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, for the parse table returned by utils::getParseData and
processed through various functions, we use many different names in different
functions for essentially this (flat) table:
pd (all rules in rules.R)
parse_data (serialize_parse_data)
parse_data_with_ws (serialize_parse_data_flat)
data (create_filler)
I think it would simplify things to just use one variable name throughout. I
suggest parse_data. We could use parse_data_flt for the flat version and and parse_data_nstd for the nested version for situations where the processing
differs.
Naming of functions
As far as I understand, the terminology around ws is more of a legacy thing, i.e. in the functions compute_parse_data_flat_with_ws or add_ws_to_parse_data since it is not really just white space information that is affected by these functions, but rather a bunch of preprocessing Hence, I would suggest to rename the latter to pre_process_parse_data and the former to compute_parse_data_flt for now.
Yes, we can keep the terms "parse data" and "nested parse data" for simplicity. The latter consists of multiple interlinked nests, this is the only new term.
Seems no, if we want to leave the rest (pd, pd_flat, pd_nested etc.) as is. However, I think we should change it too for consistency. Not all of it though, e.g. flattened_pd is not a nest anymore.
Activity
krlmlr commentedon Jun 1, 2017
A consistent name is a good idea. Can we simply use
nestedandflat, or perhaps standardize onpdfor parse data and use this as a prefix or suffix?lorenzwalthert commentedon Jun 1, 2017
Ok yes, let us just use
pdthen and useflatandnestedas suffix.consistently naming flat parse data pd_flat and nested parse data pd_…
lorenzwalthert commentedon Aug 23, 2017
Reference: https://github.com/krlmlr/styler/pull/146#discussion_r134675202.
lorenzwalthert commentedon Aug 23, 2017
So as stated in https://github.com/krlmlr/styler/pull/146#discussion_r134675202, should we use
nestfor "a parse table at one level of nesting, which always represents a complete expression", andpd_nestedfor the whole nested structure, i.e. the parse table at the top level of nesting?lorenzwalthert commentedon Aug 23, 2017
This includes documentation also obviously.
krlmlr commentedon Aug 23, 2017
Yes, we can keep the terms "parse data" and "nested parse data" for simplicity. The latter consists of multiple interlinked nests, this is the only new term.
lorenzwalthert commentedon Sep 8, 2017
Reference: #132.
lorenzwalthert commentedon Sep 30, 2017
Renaming of files
modify_pd.R->indent.Rnested.R->nest.Rws.R->ui.Rstyle_md.R->transform-code.R.transform.R->transform-files.Rkrlmlr commentedon Oct 23, 2017
Do we need to change anything here, short of renaming the files as you suggested?
lorenzwalthert commentedon Oct 29, 2017
Seems no, if we want to leave the rest (
pd,pd_flat,pd_nestedetc.) as is. However, I think we should change it too for consistency. Not all of it though, e.g.flattened_pdis not a nest anymore.Renaming. Closes parts of #16.
Renaming. Closes parts of #16.
Renaming. Closes parts of #16.
lorenzwalthert commentedon Nov 26, 2017
is_fun_dec()orpd_is_fun_dec()inexpr-is.R