Shortly after the vote, the U.S. Chamber of Commerce said it would sue the FTC to block the rule
The US Chamber of Commerce is a right-wing lobbying group for businesses, unrelated to the US Department of Commerce which is an actual government agency.
Then, you could take those comments, and have the compiler use them to ensure you're using the right variable in the right place. Oh wait, we just invented a type system.
Works even better in Ruby, as the code as given is valid, you just need to monkey patch length:
#!/usr/bin/env ruby
module DayLength
def length
if ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"].include? self
"24 hours"
else
super
end
end
end
class String
prepend DayLength
end
day = "Monday"
x = day.length
print(x)
It could be Ruby; puts is more common, but there is a print. With some silly context, the answer could even be correct:
#!/usr/bin/env ruby
module DayLength
def length
if ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"].include? self
"24 hours"
else
super
end
end
end
class String
prepend DayLength
end
day = "Monday"
x = day.length
print(x)
I'm sorry to hear that. I think at one point in my past, about half my job was tracking down nil dereference errors in Ruby. And probably a quarter was writing tests for things a good type system would catch at compile time.
Pray it just works? Get consumer-friendly legislation to pass in the US somehow? Maybe a genie wish or an infinity gauntlet could be used for this purpose.
Apple has never been great at enabling developer testing. I certainly don't see why they'd care if shit works on third party browsers. The more broken apps are just means the more users who will give up and use Safari.
It's still wild to me that I visited Hawaii as a kid, and then several years later. When I went back, a road I had driven on as kid was covered in lava.
I pay for YouTube. I'm mildly optimistic that this won't make it into the paid version, but I also wouldn't be surprised if it does.
I've already had to cancel Amazon Prime after they made the base tier have ads, but continued to show ads after paying extra for ad-free.