-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Add Gleam implementation #548
Add Gleam implementation #548
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very good otherwise. Thank you.
Sorry for requesting another change I did not communicate clearly. It is very important to have as much the same file structure as other languages to avoid confusion of participants which could work in different languages. I have indicated what is needed |
Sorry, I looked at a few other functional programming languages and I don't really see a similar structure. Could you clarify what you want where? Or provide a language that exhibits this structure and I'll copy it.
Does this mean |
It is also possible you mean that |
I think you mean this. |
Other languages usually have 3 files
|
https://github.com/emilybache/GildedRose-Refactoring-Kata/pull/548/files#diff-9cddb0c6718f48079ff3119fb817294d5d7a17c8e08984f35ecb2c0307067434R1 <- this line dictates where the My proposal,
Going to quickly confirm this is all possible. I'll add another comment when I confirm. Thanks so much for working with me here. |
All of that proposal works, only one change. In the test code, I would need to move the "test main" function into > gleam test
Compiled in 0.01s
Running program_test.main
F
Failures:
1) gilded_rose_test.update_quality_test: module 'gilded_rose_test'
Values were not equal
expected: "fixme"
got: "foo"
output:
Finished in 0.005 seconds
1 tests, 1 failures so it should be clear where the test resides. |
Yes exactly. Just confirm, the file name will be gilded_rose.gleam and not gilded_rose_item.gleam. Yes please make the changes. |
Yup! It will contain the |
In theory, all set. Let me know if you want me to squash and force push or anything. Thanks for working with me on this. Any interest in me writing a |
Thank you. Yes if you can provide a CONTRIBUTING.md, please have a separate PR for that. |
READ ME BEFORE SUBMITTING A PR
Please do not submit a PR with your solution to the Gilded Rose Kata. This repo is intended to be used as a starting point for the kata.
Please provide your PR description below this line
Hello, I would like to add a starting point for the gleam programming language https://gleam.run/
I was able to confirm that the implementation passes the text tests
I didn't add this to the text test configuration because gleam doesn't produce an executable. I am not familiar enough with the tool to know if it would support something like
gleam run
. Also,gleam run
does produce a bit of compiler information into stdout so it might cause test text to fail.