Skip to content

Switch template instructions #195

Merged
merged 2 commits into from Jun 15, 2014

4 participants

@fgallaire

The form is:

{'case', SwitchVariable :: atom(), Values :: list(), Instructions :: list() | tuple()}.

This completes #138 "Support conditional template instructions".

fgallaire added some commits Dec 5, 2013
@fgallaire fgallaire Support switch template instructions 0e39dc4
@fgallaire fgallaire A switch variable can have multiple values
51584ca
@tuncer
tuncer commented Jan 11, 2014

cc @nox

@jaredmorrow

Can we get an example and a test added for this feature?

@fgallaire

Hello,

I developed this feature because it was useful to me for that project:
https://github.com/fgallaire/colt-templates

As the "conditional template instruction" doesn't have test, I don't know exactly what to do.

@tuncer
tuncer commented May 29, 2014

What's the status?

@tsloughter tsloughter closed this Jun 15, 2014
@fgallaire

Few lines of code for a (for some people) useful option, what is the problem ?

@tsloughter
Rebar member

Just trying to clean up and sort of start fresh. Closed everything that was opened before March of this year.

But, this looks fine. I think I'll reopen it and merge in.

@fgallaire

Thanks a lot @tsloughter

@tsloughter tsloughter reopened this Jun 15, 2014
@tsloughter tsloughter merged commit 29a16cb into rebar:master Jun 15, 2014

1 of 2 checks passed

Details continuous-integration/travis-ci The Travis CI build is in progress
Details default The Travis CI build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.