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

「乳製品差別」(にゅうせいひんさべつ) #709

Open
karpled opened this issue Jul 10, 2024 · 1 comment
Open

「乳製品差別」(にゅうせいひんさべつ) #709

karpled opened this issue Jul 10, 2024 · 1 comment

Comments

@karpled
Copy link

karpled commented Jul 10, 2024

Problem Description

I was trying to write code that calculates the cost of education in Europe based on the mass and number of hedgehogs in Bulgaria (location is also important) and the cost of 1.5 liters of 3.2% milk in my country.

However, when I created the milk variable const const 🥛 = 1.5€!, I couldn't specify the fat content of the milk. This creates problems when performing such calculations. It is real FATality for me...

🥛

MILK IS NEVER NONFAT, I DON'T TAKE NONFAT MILK UNLESS IT'S BANANA-SOY MILK

This forced me to create a class for producing milk (commonly referred to as a factory) for these purposes. Here is an example code:

class MilkFatMonogamousParent {
    function makeMilkFat() => {
        class MilkFat {
            const var fatContent!
            
            function setFatContent(fatContent) {
                this.fatContent = fatContent!
            }

            function getFatContent() {
                const var complicatedFat = () => {
                    return value + percent!
                }
                return complicatedFat(3.2,%)!
            }
        }
        const const milkFat = new MilkFat()!
        return milkFat!
    }
}

const const 🥛 = 1.5€!
const const milkFatFamily = new MilkFatMonogamousParent()!
const var 🥛f = milkFatFamily.makeMilkFat()!

What I Propose

Add syntax:

const const 🥛 = <3.2%>1.5€!

to perform such operations. This is very important for me and my education.

Final words

Please think about this problem (you can every hour), I'm about to enter university soon...

@06NinjaKid06
Copy link

dreamberd example! yippee!

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

2 participants