In Sweden you have the option to capitalize software development costs, under some specific circumstances, but in general you would expense such costs immediately.

Some startups do it to window-dress their balance sheet, though. But making it compulsory is absurd.